<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="play" uri="/WEB-INF/couponplay.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
 
<div class="deal2">
	<div style="position:relative;width:285px; height:292px; overflow:hidden;">
	    <div style="position:absolute; top:0px; left:-7px; z-index:1;">
	    	<a href="javascript:goDeal('${deal.id}', '${deal.providerCode}', '${deal.metaId}');"><img src="${deal.imageUrl}" style="width:292px;height:292px;"/></a>
	    </div>
	</div>
	<div class="deal_exp2">
		<div style="line-height:180%;">
			<span class="label"><play:providerLogo providerCode='${deal.providerCode}'/></span>
			<span><a href="javascript:goDeal('${deal.id}', '${deal.providerCode}', '${deal.metaId}');"><play:stringReduce text="${deal.title}" length="20"/></a></span><br/>
	    </div>
		<div style="line-height:160%;">
	    	<span style="color:#000000;font-weight:bold;font-size:12pt;"><fmt:formatNumber value="${deal.salesPrice}" pattern="#,###"/>원</span>  
			<span style="text-decoration:line-through;font-size:8pt;color:#888888;"><fmt:formatNumber value="${deal.originalPrice}" pattern="#,###"/>원</span>
			<span style="font-weight:bold;"><span style="color:#FF0000;font-weight:bold; font-size:12pt;">${deal.discountRate}%</span></span>
	    	<span style="color:#000000;font-weight:bold;font-size:10pt;"><fmt:formatNumber value="${deal.nowCount}" pattern="#,###"/></span>
	    	<span style="font-size:8pt;color:#888888;">구매</span>&nbsp;
	    	<!--
	    	<span style="font-weight:bold;font-size:8pt;color:#888888;"><fmt:formatDate value="${deal.saleEndAt}" pattern="yyyy-MM-dd"/></span>
	    	<span style="font-size:8pt;color:#888888;">까지</span> 
	    	-->
	    </div>
   	</div>
</div>